﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Portal.Data.Webparts.WebpartControl" %>
<%@ Import Namespace="Portal.Data.Entity" %>
<span class="tit_dangoc">
    <a href="/doc-nhieu/"><%=Config.DisplayTitle %></a>
</span>
<ul class="list_dangdoc">
    <asp:Repeater ID="ListItem" runat="server">
        <ItemTemplate>
            <li rel="popover" data-content="<%#Eval("QuickInfo")%>" data-original-title="<%#Eval("FullName")%> [<%#Eval("LastChapTitle")%>]">
                <a href="<%#Eval("Url")%>" class="hot_thumb">
                    <div class="thumb w143 shadow" style="background: url('<%#Book.RenderImage((string)Eval("Image"), 143)%> ')"></div>
                    <div class="tag_truyen <%#Eval("CssFull") %>"></div>
                </a>
                <a href="<%#Eval("Url")%>" class="hot_tit"><%#Eval("FullName")%></a>
                <div class="hot_view">
                    <span class="sl_view"><%#Eval("TotalVisit") %></span>
                    <span class="hot_date"><%#Portal.Core.Common.FriendlyDateDisplay(Eval("ModifiedDate")) %></span>
                </div>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
<script runat="server">
    protected override void OnInit(EventArgs e)
    {
        int count = 0;
        ListItem.DataSource = Book.FindMostViewToDay(0, out count);
        ListItem.DataBind();
    }

</script>
